package com.idress.dao;

import com.idress.entity.UserInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface UserInfoDao extends JpaRepository<UserInfo, Integer> {

    @Query(value="from UserInfo as a where a.username=?1")
    UserInfo findByUsername(String username);
} 